package cn.tedu.boot.demo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

@Data
@Accessors(chain =true)
public class AdminAddNewDTO {

    @ApiModelProperty(value = "用户名", example = "admin001", required = true)
    @NotNull(message = "增加管理员失败,必须提交用户名!")
    private String username;

    @ApiModelProperty(value = "密码", example = "123456",required = true)
    @NotNull(message = "增加管理员失败,必须提交密码!")
    private String password;

    @ApiModelProperty(value = "昵称", example = "管理员1号",required = true)
    @NotNull(message = "增加管理员失败,必须提交昵称!")
    private String nickname;

}
